target("linkup")
  if is_kind("static") then
    add_defines("CVS_USE_STATIC")
  else
    add_defines("CVS_USE_SHARED")
  end

  set_targetdir("../bin")
  add_includedirs("../include", ".")
  add_linkdirs("../bin")
  add_deps("canvas")
  add_links("canvas")

  add_packages("SDL2", "SDL2_mixer")
  
  set_kind("binary")
  add_files("linkup/**.cc")

  --add_defines("LINKUP_AUTOTEST")
target_end()

target("mine_sweeper")
  if is_kind("static") then
    add_defines("CVS_USE_STATIC")
  else
    add_defines("CVS_USE_SHARED")
  end

  set_targetdir("../bin")
  add_includedirs("../include", ".")
  add_linkdirs("../bin")
  add_deps("canvas")
  add_links("canvas")

  add_packages("SDL2", "SDL2_mixer")
  
  set_kind("binary")
  add_files("mine_sweeper/**.cc")
target_end()

target("tetris")
  if is_kind("static") then
    add_defines("CVS_USE_STATIC")
  else
    add_defines("CVS_USE_SHARED")
  end

  set_targetdir("../bin")
  add_includedirs("../include", ".")
  add_linkdirs("../bin")
  add_deps("canvas")
  add_links("canvas")

  add_packages("SDL2", "SDL2_mixer")
  
  set_kind("binary")
  add_files("tetris/**.cc")
target_end()